﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;

namespace Logistics.Model
{
    /// <summary>
    /// 对应数据库 类型 0 为FALSE 1 为TURE
    /// </summary>
    public enum BoolEnum
    {
        /// <summary>
        /// False
        /// </summary>
        [Description("False")]
        False = 0,

        /// <summary>
        /// Ture
        /// </summary>
        [Description("Ture")]
        True = 1

    }
    /// <summary>
    /// 对应数据库 类型 0 为FALSE 1 为TURE
    /// </summary>
    public enum StateEnum
    {
        /// <summary>
        /// 保存成功
        /// </summary>
        [Description("保存成功")]
        Success = 0000,

        /// <summary>
        /// 保存失败
        /// </summary>
        [Description("保存失败")]
        Error = 1000,

        [Description("操作出现异常({0})，请联系管理员或开发人员")]
        Exception=5000,

    }
    public enum GetDataStateEnum
    {
        /// <summary>
        /// 获取成功
        /// </summary>
        [Description("获取成功")]
        Success = 0000,

        /// <summary>
        /// 获取失败
        /// </summary>
        [Description("获取失败")]
        Error = 1000,

        /// <summary>
        /// 未找到任务数据
        /// </summary>
        [Description("未找到任务数据")]
        Error01 = 1001
    }
    public enum UpdateStateEnum
    {
        /// <summary>
        /// 更新成功
        /// </summary>
        [Description("更新成功")]
        Success = 0000,

        /// <summary>
        /// 更新失败
        /// </summary>
        [Description("更新失败")]
        Error = 1000
    }
    /// <summary>
    /// 数据行状态
    /// </summary>
    public enum RowStatus
    {
        /// <summary>
        /// 删除
        /// </summary>
        [Description("删除")]
        Delete = 0,

        /// <summary>
        /// 有效
        /// </summary>
        [Description("有效")]
        Valid = 1,

        /// <summary>
        /// 无效
        /// </summary>
        [Description("无效")]
        Invalid = 2
    }
}
